import Mock from 'mockjs'
import homeApi from './mockServeData/home'
import userApi from './mockServeData/user'
import user from './mockServeData/user'
import permissionApi from './mockServeData/permission'
//拦截接口
Mock.mock(/home\/getData/,homeApi.getStatisticalData)
Mock.mock(/user\/getUser/,userApi.getUserList)
Mock.mock(/user\/addUser/,'post',userApi.createUser)//调用新增用户接口
Mock.mock(/user\/editUser/,'post',userApi.updateUser)//调用修改用户接口
Mock.mock(/user\/delUser/,'post',userApi.deleteUser)//调用修改用户接口
Mock.mock(/permission\/getMenu/,'post',permissionApi.getMenu)//调用登录接口
